package p270jp.pxv.android.commonObjects.model;

import android.support.p000v4.media.C0261e;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.io.Serializable;
import p014ae.C0172v6;
import p216hn.DefaultConstructorMarker;
import p325m0.C4721b;
import p325m0.MutabilityOwnership;
import p389ob.SerializedName;

/* compiled from: OAuthUser.kt */
/* renamed from: jp.pxv.android.commonObjects.model.OAuthUser */
/* loaded from: classes2.dex */
public final class OAuthUser implements Serializable {
    @SerializedName("account")
    private final String account;
    @SerializedName("id")

    /* renamed from: id */
    private final long f18965id;
    @SerializedName("is_mail_authorized")
    private final boolean isMailAuthorized;
    @SerializedName("is_premium")
    private final boolean isPremium;
    @SerializedName("mail_address")
    private final String mailAddress;
    @SerializedName(AppMeasurementSdk.ConditionalUserProperty.NAME)
    private final String name;
    @SerializedName("profile_image_urls")
    private final OAuthProfileImageUrls profileImageUrls;
    @SerializedName("require_policy_agreement")
    private boolean requirePolicyAgreement;
    @SerializedName("x_restrict")
    private final int xRestrict;

    public OAuthUser(long j, String str, String str2, String str3, OAuthProfileImageUrls oAuthProfileImageUrls, boolean z, int i, boolean z2, boolean z3) {
        MutabilityOwnership.m3745m(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        MutabilityOwnership.m3745m(str2, "account");
        MutabilityOwnership.m3745m(oAuthProfileImageUrls, "profileImageUrls");
        this.f18965id = j;
        this.name = str;
        this.account = str2;
        this.mailAddress = str3;
        this.profileImageUrls = oAuthProfileImageUrls;
        this.isPremium = z;
        this.xRestrict = i;
        this.isMailAuthorized = z2;
        this.requirePolicyAgreement = z3;
    }

    public final long component1() {
        return this.f18965id;
    }

    public final String component2() {
        return this.name;
    }

    public final String component3() {
        return this.account;
    }

    public final String component4() {
        return this.mailAddress;
    }

    public final OAuthProfileImageUrls component5() {
        return this.profileImageUrls;
    }

    public final boolean component6() {
        return this.isPremium;
    }

    public final int component7() {
        return this.xRestrict;
    }

    public final boolean component8() {
        return this.isMailAuthorized;
    }

    public final boolean component9() {
        return this.requirePolicyAgreement;
    }

    public final OAuthUser copy(long j, String str, String str2, String str3, OAuthProfileImageUrls oAuthProfileImageUrls, boolean z, int i, boolean z2, boolean z3) {
        MutabilityOwnership.m3745m(str, AppMeasurementSdk.ConditionalUserProperty.NAME);
        MutabilityOwnership.m3745m(str2, "account");
        MutabilityOwnership.m3745m(oAuthProfileImageUrls, "profileImageUrls");
        return new OAuthUser(j, str, str2, str3, oAuthProfileImageUrls, z, i, z2, z3);
    }

    @Override // java.lang.Object
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof OAuthUser)) {
            return false;
        }
        OAuthUser oAuthUser = (OAuthUser) obj;
        return this.f18965id == oAuthUser.f18965id && MutabilityOwnership.m3749h(this.name, oAuthUser.name) && MutabilityOwnership.m3749h(this.account, oAuthUser.account) && MutabilityOwnership.m3749h(this.mailAddress, oAuthUser.mailAddress) && MutabilityOwnership.m3749h(this.profileImageUrls, oAuthUser.profileImageUrls) && this.isPremium == oAuthUser.isPremium && this.xRestrict == oAuthUser.xRestrict && this.isMailAuthorized == oAuthUser.isMailAuthorized && this.requirePolicyAgreement == oAuthUser.requirePolicyAgreement;
    }

    public final String getAccount() {
        return this.account;
    }

    public final long getId() {
        return this.f18965id;
    }

    public final String getMailAddress() {
        return this.mailAddress;
    }

    public final String getName() {
        return this.name;
    }

    public final OAuthProfileImageUrls getProfileImageUrls() {
        return this.profileImageUrls;
    }

    public final boolean getRequirePolicyAgreement() {
        return this.requirePolicyAgreement;
    }

    public final int getXRestrict() {
        return this.xRestrict;
    }

    @Override // java.lang.Object
    public int hashCode() {
        long j = this.f18965id;
        int a = C0172v6.m12134a(this.account, C0172v6.m12134a(this.name, ((int) (j ^ (j >>> 32))) * 31, 31), 31);
        String str = this.mailAddress;
        int hashCode = (this.profileImageUrls.hashCode() + ((a + (str == null ? 0 : str.hashCode())) * 31)) * 31;
        boolean z = this.isPremium;
        int i = 1;
        if (z) {
            z = true;
        }
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        int i4 = z ? 1 : 0;
        int i5 = (((hashCode + i2) * 31) + this.xRestrict) * 31;
        boolean z2 = this.isMailAuthorized;
        if (z2) {
            z2 = true;
        }
        int i6 = z2 ? 1 : 0;
        int i7 = z2 ? 1 : 0;
        int i8 = z2 ? 1 : 0;
        int i9 = (i5 + i6) * 31;
        boolean z3 = this.requirePolicyAgreement;
        if (!z3) {
            i = z3 ? 1 : 0;
        }
        return i9 + i;
    }

    public final boolean isMailAuthorized() {
        return this.isMailAuthorized;
    }

    public final boolean isPremium() {
        return this.isPremium;
    }

    public final void setRequirePolicyAgreement(boolean z) {
        this.requirePolicyAgreement = z;
    }

    @Override // java.lang.Object
    public String toString() {
        StringBuilder c = C0261e.m12042c("OAuthUser(id=");
        c.append(this.f18965id);
        c.append(", name=");
        c.append(this.name);
        c.append(", account=");
        c.append(this.account);
        c.append(", mailAddress=");
        c.append((Object) this.mailAddress);
        c.append(", profileImageUrls=");
        c.append(this.profileImageUrls);
        c.append(", isPremium=");
        c.append(this.isPremium);
        c.append(", xRestrict=");
        c.append(this.xRestrict);
        c.append(", isMailAuthorized=");
        c.append(this.isMailAuthorized);
        c.append(", requirePolicyAgreement=");
        return C4721b.m3753a(c, this.requirePolicyAgreement, ')');
    }

    public /* synthetic */ OAuthUser(long j, String str, String str2, String str3, OAuthProfileImageUrls oAuthProfileImageUrls, boolean z, int i, boolean z2, boolean z3, int i2, DefaultConstructorMarker eVar) {
        this(j, str, str2, str3, oAuthProfileImageUrls, z, i, z2, (i2 & RecyclerView.AbstractC0819y.FLAG_TMP_DETACHED) != 0 ? false : z3);
    }
}